package com.cn.yds.bdy.dao.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Entity
@Table(name = "topic")
public class TopicModel implements Serializable {

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    @Column(name = "teacher_id")
    private Integer teacherId;
    @Column(name = "topic_name")
    private String topicName;
@Column(name = "description")
private String description;
@Column(name = "type")
private Integer type;
@Column(name = "status")
private Integer status;
@JsonIgnore
@Column(name = "create_time", insertable = false, updatable = false)
private Date createTime;
@JsonIgnore
@Column(name = "update_time", insertable = false, updatable = false)
private Date updateTime;

        }
